<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<section id="proivder-list-section">
	<ul>
		<li><a href="provider/create">Create Provider</a></li>
	</ul>

	<div class="row-fluid">
		<table class="table table-striped table-bordered table-condensed">
			<thead>
				<tr>
					<th>ProviderType</th>
					<th>ProviderName</th>
					<th>BucketName</th>
					<th>AccessKey</th>
					<th>SecretKey</th>
					<th>ClassName</th>
					<th>CreateTime</th>
					<th>Operation</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach items="${providers}" var="provider">
					<tr>
						<td>${provider.providerType}</td>
						<td>${provider.name}</td>
						<td>${provider.bucketName}</td>
						<td>${provider.accessKey}</td>
						<td>${provider.secretKey}</td>
						<td>${provider.className}</td>
						<td>${provider.createTime}</td>
						<td><span><a href="provider/${provider.id}">Detail</a></span>
							| <span><a>Delete</a></span></td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
	</div>
</section>